package com.yeren.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * 读取文件工具
 * @author liubiao
 *
 */
public class PropertiesUtil {
	public static Properties loadFile(String fileName){
		Properties p=new Properties();
		try {
			InputStream is=PropertiesUtil.class.getResourceAsStream("/"+fileName);
			p.load(is);
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		return p;
	}
}
